package com.jmlee.bo;


import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description 前端传入后台订单信息
 * @Author jmLee
 * @Date 2021/3/11 21:58
 * @Version 1.0
 */
public class SubmitOrderBO {

    @NotNull
    private Long userId;        // 用户Id
    @NotNull
    private Long addressId;     // 收货地址

    @NotNull
    private Integer payMethod;  // 支付方式
    private String leftMsg;     // 用户留言
    @NotNull
    private Integer orderTotalPrice;  // 订单总金额

    @NotNull
    private List<OrderItemBO> orderItemBOs;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public String getLeftMsg() {
        return leftMsg;
    }

    public void setLeftMsg(String leftMsg) {
        this.leftMsg = leftMsg;
    }

    public Integer getOrderTotalPrice() {
        return orderTotalPrice;
    }

    public void setOrderTotalPrice(Integer orderTotalPrice) {
        this.orderTotalPrice = orderTotalPrice;
    }

    public List<OrderItemBO> getOrderItemBOs() {
        return orderItemBOs;
    }

    public void setOrderItemBOs(List<OrderItemBO> orderItemBOs) {
        this.orderItemBOs = orderItemBOs;
    }

}
